package cn.lanqiao.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.lanqiao.entity.Score;
import cn.lanqiao.mapper.ScoreMapper;
import cn.lanqiao.service.ScoreService;

@Service
public class ScoreServiceImpl implements ScoreService {

    @Autowired
    private ScoreMapper scoreMapper;
    @Override
    public int add(Score score) {
        return scoreMapper.add(score);
    }

    @Override
    public List<Score> findAll() {
        return scoreMapper.findAll();
    }

    @Override
    public IPage<Score> findById(Page page, Integer studentId) {
        return scoreMapper.findById(page, studentId);
    }

    @Override
    public List<Score> findById(Integer studentId) {
        return scoreMapper.findById(studentId);
    }

    @Override
    public List<Score> findByExamCode(Integer examCode) {
        return scoreMapper.findByExamCode(examCode);
    }

	@Override
	public List<Score> findBySubject(String subject) {
	
		return scoreMapper.findBySubject(subject);
	}

	@Override
	public List<Score> findByAvg() {
		
		return scoreMapper.findByAvg();
	}

	@Override
	public List<Score> findByMax(String subject) {
		
		return scoreMapper.findByMax(subject);
	}

	@Override
	public List<Score> findByMin(String subject) {
		
		return scoreMapper.findByMin(subject);
	}

	@Override
	public List<Score> findByPass(String subject) {
		
		return scoreMapper.findByPass(subject);
	}

	@Override
	public List<Score> findByValue() {
	
		return scoreMapper.findByValue();
	}



	

	

	
}
